package services

import (
	"fmt"
	"net/http"
	_ "net/http/pprof"
)

func TestPProf(port int) {
	fmt.Println("监控开始，端口", port)

	err := http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", port), nil)
	if err != nil {
		fmt.Println(port, "端口监控失败", err.Error())
		return
	}
}
